<SCRIPT LANGUAGE="JavaScript">  
    function test()
    {
        return confirm("Are you sure want to delete the photo ?");
    }
</SCRIPT>

<?php 
echo "<div class='form'>";
echo "<h2> Company Logo</h2>";
echo "<hr color='#2A7EF7'>";

    echo "<div class='kotak2'>";
    echo $form->create('Employer',array('action'=>'logo','type'=>'file'));
        if($this->data['Employer']['logo']!='')
        {
            echo "<div class='input'><label>&nbsp</label>";
                echo $html->image('../'.$this->data['Employer']['logo'], array( 'class'=>'logo', 'alt' => 'Your Logo is Missing'));    
                echo "<br>";
                echo "<label> &nbsp </label>";
                echo $html->link('[ Delete Logo ]',array('controller'=>'employers','action'=>'delete_logo'),array(),'Are you sure ?',false);
            echo "</div>";
            echo $form->input('logo',array('type'=>'file','label'=>'Upload Logo'));
        }
        else
        {
            echo $form->input('logo',array('type'=>'file','label'=>'Edit Logo'));
        
        }
        
		echo $form->input('id',array('type'=>'hidden'));
        echo "<div class='input'><label>".$html->link('[ Back ]',array('controller'=>'employers','action'=>'company_profile'))."</label><input type='submit' value='Submit'></div>";
    echo "</form>";  
    echo "</div>";
    echo ":. Logo file must be <span class='red'>Image</span> ( *.jpg, *.jpeg, *.gif, *.png)";
    echo "<br>:. Logo maximum dimension is <span class='red'>125 x 50</span> pixels";
    
echo "</div>";
?>
